package com.cosmosource;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.FeignAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * @author cosmo
 */
@EnableDiscoveryClient
@EnableTransactionManagement
@SpringBootApplication(exclude = {FeignAutoConfiguration.class})
@MapperScan("com.cosmosource.repository.mapper")
public class DemoWebApplication extends SpringBootServletInitializer {

    /**
     * Spring boot Jar方式启动入口
     */
    public static void main(String[] args) {
        SpringApplication.run(DemoWebApplication.class, args);
    }


}
